import 'package:json_annotation/json_annotation.dart';
import 'package:gzmall_app/model/confirm_order.dart';

part 'confirm_order_data.g.dart';

@JsonSerializable()
class ConfirmOrderData extends Object {
  @JsonKey(name: 'total_fee')
  String totalFee;

  @JsonKey(name: 'orders')
  List<ConfirmOrder> orders;

  @JsonKey(name: 'total_quantity')
  int totalQuantity;

  ConfirmOrderData(
    this.totalFee,
    this.orders,
    this.totalQuantity,
  );

  factory ConfirmOrderData.fromJson(Map<String, dynamic> srcJson) =>
      _$ConfirmOrderDataFromJson(srcJson);
}
